package com.eye.catcher.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * @Author: huzhiwei
 * @Date: 2022/2/10
 */

@Configuration
@MapperScan("com.eye.catcher.mapper") //对应你项目中的mapper包
public class MybatisPlusConfig {


    public MybatisPlusConfig() {

    }

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
